interface TakeOrderAPIResData {
  code: number
  msg: string
  time: string
  data: null
}

interface TakeOrderAPIData {
  orderid: string
}

export function takeOrderAPI(data: TakeOrderAPIData, token: string) {
  return httpInstance.post<TakeOrderAPIResData, TakeOrderAPIData>(
    '/api/driver/subJiedan',
    data,
    { headers: { token } },
  )
}
